/* =============================================================
   AssetMark Ascent — Information Sharing Authorization
   Stylesheet
   ============================================================= */

:root {
  --navy: #0f2a47;
  --navy-2: #1a3d63;
  --accent: #1a73a8;
  --banner: #1A73A8;
  --ink: #1f2a3a;
  --body: #334155;
  --body-2: #475569;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5ecf3;
  --line-2: #d8e1ea;
  --bg-soft: #f4f7fa;
  --bg-card: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Container — max-width 6xl with horizontal padding */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .container { padding-left: 48px; padding-right: 48px; }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.95); opacity: 0.55; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.fade-up {
  animation: fadeUp 0.55s ease-out backwards;
  animation-delay: var(--delay, 0ms);
}
.fade-in {
  animation: fadeIn 0.4s ease-out backwards;
  animation-delay: var(--delay, 0ms);
}

/* =============================================================
   BRAND BANNER
   ============================================================= */
.brand-banner {
  background: var(--banner);
  color: white;
  width: 100%;
}
.brand-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
@media (min-width: 1024px) {
  .brand-banner-inner { padding-top: 20px; padding-bottom: 20px; }
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
}
.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.30);
  display: none;
}
.brand-text {
  display: none;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}
.brand-text strong {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .brand-divider { display: block; }
  .brand-text { display: inline-flex; }
}
.brand-badge {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: white;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .brand-badge { display: inline-flex; }
}

/* =============================================================
   PAGE CONTENT
   ============================================================= */
.page-content {
  padding-top: 32px;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  .page-content { padding-top: 40px; }
}

/* =============================================================
   TITLE BLOCK
   ============================================================= */
.title-block { margin-bottom: 32px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.eyebrow.accent { color: var(--accent); }
.title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
@media (min-width: 1024px) {
  .title { font-size: 48px; }
}
.subtitle {
  margin-top: 16px;
  font-size: 17px;
  color: var(--body-2);
  max-width: 640px;
  line-height: 1.55;
  white-space: nowrap;
}

/* =============================================================
   STEPPER
   ============================================================= */
.stepper { margin-bottom: 28px; }
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (min-width: 640px) {
  .step-row { gap: 16px; }
}
.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  background: white;
  color: var(--muted-2);
  border: 1px solid var(--line-2);
  transition: all 0.3s ease;
}
.step-item.active .step-circle {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: 0 0 0 5px rgba(15, 42, 71, 0.10);
}
.step-item.complete .step-circle {
  background: #e6edf4;
  color: var(--navy);
  border-color: #e6edf4;
}
.step-label { display: none; min-width: 0; }
@media (min-width: 640px) {
  .step-label { display: block; }
}
.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-item.active .step-title,
.step-item.complete .step-title { color: var(--navy); }
.step-sub {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-line {
  flex: 1;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, var(--line-2) 50%, transparent 50%);
  background-size: 8px 1px;
}
@media (min-width: 640px) {
  .step-line { margin: 0 16px; }
}
.step-line.done {
  background: var(--navy);
  background-size: auto;
}

/* =============================================================
   CARD
   ============================================================= */
.card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 42, 71, 0.04),
    0 18px 44px -16px rgba(15, 42, 71, 0.18);
}
.card-accent {
  height: 5px;
  width: 100%;
  background: var(--navy);
}
.card-body {
  padding: 28px;
}
@media (min-width: 1024px) {
  .card-body { padding: 48px; }
}

/* =============================================================
   STEP CONTENT (shared bits)
   ============================================================= */
.step-content[hidden] { display: none; }
.welcome { margin-bottom: 28px; }
.section-h {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 1024px) {
  .section-h { font-size: 30px; }
}
.lede-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--body-2);
  line-height: 1.65;
}

/* =============================================================
   NOTICES (warning + info callouts)
   ============================================================= */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
}
.notice-warning {
  background: #fff8eb;
  border: 1px solid #f5d99a;
  margin-bottom: 12px;
}
.notice-info {
  background: #eff5fb;
  border: 1px solid #c8dff0;
  margin-bottom: 32px;
}
.notice-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.notice-icon-warning { background: #b45309; }
.notice-icon-info    { background: var(--banner); }
.notice-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.notice-title-warning { color: #7c4a08; }
.notice-title-info    { color: var(--navy); }
.notice-body {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.notice-body-warning  { color: #92580c; }
.notice-body-info     { color: #1f3a52; }

/* =============================================================
   INFO CARDS (3-up grid)
   ============================================================= */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .info-cards { grid-template-columns: repeat(3, 1fr); }
}
.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.info-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e6edf4;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.info-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}
.info-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.info-card-footer {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* =============================================================
   VIEW DISCLOSURE BUTTON
   ============================================================= */
.view-disclosure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--navy);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover:not(:disabled) {
  background: white;
  border-color: var(--navy);
}
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  background: transparent;
  color: var(--body-2);
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--navy); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 10px -3px rgba(15, 42, 71, 0.35);
}
.btn-primary:not(:disabled):hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px -4px rgba(15, 42, 71, 0.4);
}
.btn-primary:disabled {
  background: #c5d1de;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary-sm {
  font-size: 13px;
  padding: 8px 20px;
}
.btn-content { display: inline-flex; align-items: center; gap: 8px; }

/* Loading spinner inside buttons */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* =============================================================
   SECTION DIVIDER
   ============================================================= */
.section-divider {
  border: none;
  height: 1px;
  background: var(--line);
  margin-bottom: 32px;
  margin-top: 0;
}

/* =============================================================
   FORM
   ============================================================= */
.form-section { margin-bottom: 32px; }
.form-h {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.form-h-sub {
  margin: 4px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
.form-field { display: flex; flex-direction: column; }
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--body-2);
  margin-bottom: 6px;
}
.form-label-optional {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
}
.form-input-wrap { position: relative; }
.form-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.form-input {
  width: 100%;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 11px 14px 11px 38px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 42, 71, 0.10);
}
.form-input::placeholder { color: var(--muted-2); }

/* =============================================================
   ACKNOWLEDGMENT BLOCK
   ============================================================= */
.ack-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.ack-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.ack-row:last-child { margin-bottom: 0; }
.ack-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c5d1de;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 3px 0 0;
  transition: all 0.15s ease;
}
.ack-check:hover { border-color: var(--navy); }
.ack-check:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.ack-check:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ack-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  user-select: none;
}
.ack-text strong { color: var(--navy); font-weight: 600; }

/* =============================================================
   CTA ROW
   ============================================================= */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-status {
  font-size: 13px;
  color: var(--muted);
}

/* =============================================================
   STEP 2 — verification spinner
   ============================================================= */
.step2-wrap { text-align: center; padding: 48px 0; }
.spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}
.spinner-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.spinner-progress {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--navy);
  border-right-color: var(--accent);
  animation: spin 1.2s linear infinite;
}
.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.step2-h {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.step2-sub {
  margin: 12px auto 0;
  font-size: 14px;
  color: var(--body-2);
  max-width: 380px;
  line-height: 1.55;
}
.step2-checks {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step2-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  text-align: left;
  color: var(--body);
  opacity: 0;
  animation: fadeUp 0.55s ease-out forwards;
}
.step2-checks li:nth-child(1) { animation-delay: 300ms; }
.step2-checks li:nth-child(2) { animation-delay: 700ms; }
.step2-checks li:nth-child(3) { animation-delay: 1100ms; }

.check-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================================
   STEP 3 — confirmation
   ============================================================= */
.step3-wrap { text-align: center; padding: 24px 0 16px; }
@media (min-width: 1024px) {
  .step3-wrap { padding: 40px 0 16px; }
}
.success-ornament {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  animation: fadeUp 0.55s ease-out backwards;
}
.success-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--navy);
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.success-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -8px rgba(15, 42, 71, 0.45);
}
.success-check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.6s ease-out 0.3s forwards;
}
.step3-h {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  animation: fadeUp 0.55s ease-out 200ms backwards;
}
@media (min-width: 1024px) {
  .step3-h { font-size: 42px; }
}
.step3-sub {
  margin: 12px auto 0;
  font-size: 16px;
  color: var(--body-2);
  max-width: 560px;
  line-height: 1.6;
  animation: fadeUp 0.55s ease-out 200ms backwards;
}
.next-block {
  max-width: 560px;
  margin: 36px auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  animation: fadeUp 0.55s ease-out 350ms backwards;
}
.next-step {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.next-step.next-step-last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.next-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.next-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.next-body {
  font-size: 13px;
  color: var(--body-2);
  line-height: 1.55;
}
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  animation: fadeUp 0.55s ease-out 500ms backwards;
}
.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--body-2);
  background: white;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 36px;
  animation: fadeUp 0.55s ease-out 600ms backwards;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 600;
  color: var(--navy);
}

/* =============================================================
   PAGE FOOTER
   ============================================================= */
.page-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 640px) {
  .page-footer { flex-direction: row; align-items: center; }
}
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-right { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.footer-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   MODAL
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal[hidden] {
  display: none !important;
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 71, 0.55);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 768px;
  height: 100%;
  max-height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 640px) {
  .modal-panel { border-radius: 12px; }
}

/* Modal banner (colored header) */
.modal-banner {
  background: var(--banner);
  color: white;
  flex-shrink: 0;
}
.modal-banner-inner {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 640px) {
  .modal-banner-inner { padding: 12px 28px; }
}
.modal-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.modal-logo { height: 26px; width: auto; }
.modal-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.30);
  display: none;
}
.modal-brand-text {
  display: none;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.modal-brand-text strong {
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.modal-brand-text span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .modal-divider { display: block; }
  .modal-brand-text { display: inline-flex; }
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.22); }

/* Modal sub-header */
.modal-subheader {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-subheader { padding: 16px 28px; align-items: center; }
}
.modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.modal-download-btn { background: white; }

/* Modal body */
.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 28px 20px;
  color: var(--body);
  line-height: 1.65;
}
@media (min-width: 640px) {
  .modal-body { padding: 28px 32px; }
}
.modal-lede {
  padding: 16px 20px;
  margin-bottom: 28px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: var(--ink);
}
.modal-section { margin-bottom: 28px; }
.modal-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.modal-section-body { font-size: 14.5px; }
.modal-section-body p { margin: 0 0 10px; line-height: 1.65; }
.modal-section-body ul {
  padding-left: 4px;
  margin: 10px 0 14px;
  list-style: none;
}
.modal-section-body li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.55;
}
.modal-section-body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.modal-section-body strong { color: var(--navy); font-weight: 600; }
.modal-section-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal-section-body a:hover { color: var(--navy); }
.modal-doc-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Modal footer */
.modal-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-footer { padding: 12px 28px; }
}

/* When modal is open, lock body scroll */
body.modal-open { overflow: hidden; }
